<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>分类首页</title>
    <link rel="shortcut icon" type="image/x-icon" th:href="@{../../static/img/index/bitbug_favicon.ico}"/>
    <link rel="stylesheet" th:href="@{../../static/css/bootstrap.css}"/>
    <link rel="stylesheet" th:href="@{../../static/css/index/serch.css}"/>
    <script th:src="@{../../static/js/jquery-2.1.0.js}" type="text/javascript" charset="utf-8"></script>
    <script th:src="@{../../static/js/bootstrap.js}" type="text/javascript" charset="utf-8"></script>
    <script th:src="@{../../static/js/detail.js}" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<!--首页头部-->
<nav class="navbar navbar-default navbar-inverse navbar-fixed-top">
    <div class="container">
        <ul class="nav navbar-nav">
            <li>
                <a href="#" style="font-size: 30px; font-family:'楷体';">宠物商城</a>
            </li>
            <li th:if="${session.login_user == null}">
                <a href="#" data-toggle="modal" data-target="#myModal1">登录</a>
            </li>
            <li th:if="${session.login_user == null}">
                <a href="#" data-toggle="modal" data-target="#myModal3" id="getEwm">扫码登录</a>
            </li>
            <li th:if="${session.login_user == null}">
                <a href="#" data-toggle="modal" data-target="#myModal2">注册</a>
            </li>
            <li th:if="${session.login_user!=null}">
                <a href="#" th:text="'欢迎您 :'+${session.login_user.getUsername()}"></a>
            </li>
            <li th:if="${session.login_user!=null}">
                <a th:href="@{/user/set}">个人中心</a>
            </li>
            <li th:if="${session.login_user!=null}">
                <a th:href="@{/user/logout}">注销</a>
            </li>
        </ul>
    </div>
</nav>
<div class="container" style="margin-top: 70px;">
    <div class="row">
        <div class="col-lg-2 text-center bg-danger" style="padding:10px" th:text="${parent.getCategoryname()}">男装/女装
        </div>
        <div class="col-lg-10 text-center" style="border:1px solid #F5F5F5;padding:0;">
            <div class="col-lg-4 pro_class_son" th:each="son:${sons}">
                <a href="#" th:text="${son.getCategoryname()}">夹克</a>
            </div>
        </div>
    </div>
</div>
<hr/>
<div class="container">
    <div class="panel panel-info">
        <div class="panel-heading">
            <h4>为您推荐</h4>
        </div>
        <div class="panel-body">
            <div class="thumbnail col-lg-3">
                <a href="#" class="text-info">
                    <img src="../../img/index/products/index/boot1.png" alt="...">
                    <div class="caption">
                        <h3>骆驼牌羊奶</h3>
                        <p>￥ 17.5</p>
                    </div>
                </a>
            </div>
            <div class="thumbnail col-lg-3">
                <a href="#" class="text-info">
                    <img src="../../img/index/products/index/boot1.png" alt="...">
                    <div class="caption">
                        <h3>骆驼牌羊奶</h3>
                        <p>￥ 17.5</p>
                    </div>
                </a>
            </div>
            <div class="thumbnail col-lg-3">
                <a href="#" class="text-info">
                    <img src="../../img/index/products/index/boot1.png" alt="...">
                    <div class="caption">
                        <h3>骆驼牌羊奶</h3>
                        <p>￥ 17.5</p>
                    </div>
                </a>
            </div>
            <div class="thumbnail col-lg-3">
                <a href="#" class="text-info">
                    <img src="../../img/index/products/index/boot1.png" alt="...">
                    <div class="caption">
                        <h3>骆驼牌羊奶</h3>
                        <p>￥ 17.5</p>
                    </div>
                </a>
            </div>
        </div>
    </div>
</div>
<div class="container">
    <!--1-->
    <div class="panel panel-info" th:each="product:${productList}">
        <div class="panel-heading" th:text="${product.getKey()}">
            奶制品
        </div>
        <div class="panel-body">
            <div class="thumbnail col-lg-3" th:each="pro:${product.getValue()}">
                <a th:href="@{'/product/detail/'+${pro.getId()}}"><img th:src="${pro.getCover()}" alt="..."></a>
                <div class="caption">
                    <h3 th:text="${pro.getProname()}">骆驼牌羊奶</h3>
                    <p th:text="${pro.getInfo()}">绝对不掺假三路</p>
                    总销量: <span th:text="${pro.getSales()}"></span>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
